<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
		<%
		request.setCharacterEncoding("utf-8");
		String name = request.getParameter("username");
		String password = request.getParameter("pwd");
		if(name.equals("张三")&&password.equals("123")){
			session.setAttribute("user", name);
			request.getRequestDispatcher("success.jsp").forward(request, response);
		}else{
			response.sendRedirect("login.jsp");
		}
		
		%>
</body>
</html>